@import "utils";
.UserHistory {
  width: 768px;
  margin: 0 auto;
  @include media("<large") {
    width: 100%;
  }
  .no-history {
    color: $oc-gray-6;
    font-size: 1.125rem;
    text-align: center;
  }
  .HistoryItem {
    cursor: pointer;
    padding-top: 2rem;
    padding-bottom: 2rem;
    &+.HistoryItem {
      border-top: 1px solid $oc-gray-2;
    }
    .message {
      display: flex;
      align-items: center;
      svg {
        margin-right: 0.5rem;
        color: $oc-gray-5;
        font-size: 1rem;
        &.comment {
          margin-top: -2px;
        }
      }
      line-height: 1.5;
      font-size: 0.875rem;
      color: $oc-gray-7;
      margin-bottom: 1rem;
    }
    .mini-postcard {
      display: flex;
      align-items: center;
      .thumbnail {
        flex-shrink: 0;
        width: 128px;
        height: 128px;
        background: $oc-gray-1;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid $oc-gray-3;
        @include media("<large") {
          width: 96px;
          height: 96px;
        }
        img {
          width: 100%;
          height: 100%;
          display: block;
          object-fit: cover;
        }
      }
      .separator {
        flex-shrink: 0;
        background: $oc-gray-3;
        width: 1px;
        height: 96px;
        margin-left: 1rem;
        margin-right: 1rem;
        @include media("<large") {
          margin-left: 0.5rem;
          margin-right: 0.5rem;
        }
      }
      .post-info {
        h4 {
          font-size: 1.125rem;
          margin: 0;
          color: $oc-gray-9;
        }
        p {
          color: $oc-gray-7;
          margin-bottom: 0;
        }
        @include media("<large") {
          h4 {
            font-size: 0.875rem;
          }
          p {
            font-size: 0.75rem;
          }
        }
      }
    }
    .comment-block {
      margin-top: 1.5rem;
      position: relative;
      .mark {
        font-family: "Noto Serif KR", sans-serif;
        font-size: 2rem;
        font-weight: 600;
        position: absolute;
        left: 0;
        top: -1rem;
      }
      .comment-text {
        font-family: "Noto Serif KR", sans-serif;
        padding-top: 0.5rem;
        padding-left: 1.5rem;
        white-space: pre-wrap;
        @include media("<large") {
          font-size: 0.875rem;
        }
      }
    }
    &.placeholder {
      .gray-box {
        background: $oc-gray-1;
        border-radius: 2px;
        height: 1em;
        animation: Blink 0.5s ease-in-out;
        animation-iteration-count: infinite;
        animation-direction: alternate;
        display: block;
      }
      .thumbnail {
        background: none;
        border: none;
      }
      .fake-img {
        width: 100%;
        height: 100%;
      }
      .post-info {
        flex: 1;
      }
      p .gray-box {
        &+.gray-box {
          margin-top: 0.5rem;
        }
      }
    }
  }
}